package com.ruan.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruan.dto.AddOrderDto;
import com.ruan.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruan.entity.R;
import com.ruan.query.OrderQuery;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author 59499
* @description 针对表【tb_order】的数据库操作Service
* @createDate 2023-09-20 15:00:05
*/
public interface OrderService extends IService<Order> {

    R<IPage<Order>> queryOrders(OrderQuery orderQuery);

    R<Order> getOrderDetails(Integer orderId);

    R<List<Order>> getHotGoodsByLimit(Integer limit);

    R<String> uploadOrderPicture(MultipartFile file);

    R<Void> addOrder(AddOrderDto addOrderDto);

    R<IPage<Order>> queryOrdersList(OrderQuery orderQuery);

    R<IPage<Order>> queryPurchaseList(OrderQuery orderQuery);
}
